/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rh.game.impl;

import com.rh.game.chat.ChatImage;

import com.rh.game.GameObject;
import com.rh.game.Location;
import com.rh.game.MagicalEffect;

import java.util.List;

/**
 *
 * @author Hayden
 */
public class GameObject1 implements GameObject {
    GameObject1(String pID, String pName, Location pLoc, List<MagicalEffect> pEffects)  {
        id = pID;
        name = pName;
        location = pLoc;
        effects = pEffects;
    }

    private List<MagicalEffect> effects = MagicalEffect.EMPTY_LIST;
    public List<MagicalEffect> getEffects()  { return effects; }
    
    private Location location = null;
    public Location getLocation()  { return location; }
    public void setLocation(Location pLoc)  {
        if (pLoc == null)  throw new NullPointerException("Can not move something to a null location.");
        location = pLoc;
    }
    
    private String id = "";
    public String getID()  { return id; }
    
    private String name = "";
    public String getName()  { return name; }

    public ChatImage getImage()  { return ChatImage.NULL; }
    
    @Override
    public String toString()  { return getName(); }
}
